Added bats tests