cleanup up api_test.go

ping @shykes