start resource CRUD api
fix tests