fixed possible type error
added codeclimate test coverage support