add condtional query tests

remove vestigial line