The error code of GuiUnit is the number of tests that fail

This should make it easier to detect failures when run from the
commandline