Fixed tests broken by AJAX