Applying support of SQL_CACHE and SQL_NO_CACHE to existing tests