fix binary metrics unit tests