tests and AJAX