Refactor tests.

    * Move all files for testing into ./tests.