Added status code for creating operations in restful handler
Fixed unit test