Test for renaming private variables of custom types