Updated test for ajax call.