Fixed a number of minor issues in dataset introspection and test swuite.