Fixes bug that occurred when a class passed the exposure tests

As the test did not assert anything when all was well, the test would still fail.
Also fixes a typo and cleans up the code a bit.
Adds infrastructure for Coveralls

 - Adds Php-Coveralls as composer dev dependency
 - Adds build file for travis
 - Changes clover.xml path in PhpUnit config to Coveralls default