added branche coverage to tests