added test coverage through codeclimate