Added r_set_cardinality test
Fixed attribute names
Fixed function return types of count and card