Fixing errormessage unpack so test works