Fix ajax tests