changed test case ResourceHandler
changed errorCodes for ResourceHandler
extended rest api tests