Fix hasClass implementation and clean tests
Adjust travis coverage reports