Fixed Ajax unit tests