Ajax unit test