updated tests, added codeclimate