fixed failure count so that non-zero exit code is return on test failure

current version of lab returns zero exit code if a test fails