Fixing ajax test