fix the spec result where invalid TAP format result would be generated

The TAP result is not displayed on the way if it use Jenkins TAP plugin.
Merge pull request #280 from Watson1978/tap_format

fix the spec result where invalid TAP format result would be generated