added test for query data type, ref #81