Added tests for Ajax handler