Emit output only when failures occur in travis
Fixed missing variable when running test bundles