Reorganizing tests and enabling test coverage.

I've moved all tests to /tests so they are easier to locate and enabled test coverage which resulting the data in #180 and the bug in #179.