add some api unit tests
Fix _id to be popped in PUT requests