test creating an api in Go using RethinkDB