Add convenience functions to test client for ajax requests.