Added first tests of error codes