Ensure valid setup of queries from factory