Split some stuff out of base into test_helper
Add support for coveralls