Fixed Travis config and added more tests.