metric unit tests