test query_optimizer: simplify