test for request end