use subtests
fix boolean expression in test
enable travis