Split source code into src/ and tests/