fixed stored_queries.tests