add a test for count queries. issue #27.