[ticket/416] Add test for handle_ajax_request()

B3P-416