test for named queries, and use of different parameters with same query