tests for ajax