Also add associated tests for both Sway and i3. PR #1231
nixfmt
- Move all module tests to their own directories. - Avoid duplication of `// import`.