test query_optimizer: build before running tests