More unit tests to reduce the branching in cobertura report