add tests for ajax module