Moved the test code into a separate 'test' directory.