Add unit tests to create, read, update and delete