test select using parameters and missing entity cache
improve query test coverage