Added test for name registration