ticket:6 add tests for ajax