Add tests for User::getCanonicalName()