Add test for handle_ajax.