add codeclimte test coverage