add unit tests for CRUD ops