fix some bugs on response and responseMock classes
add case test to response class