Fix API documentation
Deal with AJAX delays on randomly failing test