Update tests.
Add tests to cabalfile.