increase test coverage of the cardinality code