add 2 tests for ajax