added codeclimate test coverage