fix failed run of test that passes Travis CI

It could happen that the tests failed but Travis CI did not recognize
it. The success of the test suite is now checked explicitly.
moved result check after output of version information
moved output of version before test run to print in any case
Merge pull request #304 from cpaulik/fix_run_test

fix failed run of test that passes Travis CI