jUnit test for queryUniqueByField()