fixed handling of zerovm error codes, fixed some more tests