Added test for select in single entities