Move test files to test directory.
Move source files to lib directory.