extended test coverage to include all relevant lines