fix broken test about invalid name