added test for inAjax