Add regression test for #4
Run tests by default on Travis