added testing for AJAX calls