Use number of errors as return value

We needed our tests to return a value different to '0' when there were errors, because we want to cancel our build process if there are any failed unit tests. So I changed the code to return the number of failed tests insted of const '0'.

Regards