Add test section to cabal file

Hi @bos, thanks for this useful library!

Just wondering if there is any reason not to have the tests for this library in the cabal file? I added the section in this PR and the tests pass for me.

Thanks!