Move test out of src

This PR depends on #20. Review and merge that pull request before reviewing this.

Tests are moved out of the src directory into a separate top-level directory.
This way it's more obvious we have automated testing set up.