Move test to a separate file.
Whitespace fixes.
Add names to declarations.
Split split into split and splits.
Move Foo to Test.
Move newRegister close to newVariables.