test the response with assertinstanceOf