tests fixed
travis and codeclimate