Fixed a bug to put correct exit code

when I use ```stop``` option on paramter of ```framework.test()``` function.
I got exit 1 code event there are any test error.
so I fixed to look ```framework.isTestError``` value.