added test with request entity and response entity