fix broken test when registering an invalid name