Clean up class number tests
Fixing up irreducibility tests a little
Add travis-ci support