Test using bats