Refactor tests.

    * Move all files for testing into ./tests.
Merge branch 'develop'