Test CRUD functions