added tests for ajax