added test coverage via codeclimate