mocha tests for crud controller