fix and add tests for create, update, delete