Fix division by 0

When no tests or asserts defined it's passed / total, when total = 0, it's error