Fixing setPrettyName (+unit test)