Moved unit test code from src/ to test/.