improving test coverage to 100%