fix large tests cause by a non standard sql query