Run unit testing with --only-on-failure when executing from ctest
The number of log line in travis is limited to 10000 and the
ever growing unit tests are eating up the lines, hence only print
the failed unit tests when running it from ctest