Fix tests after renaming getVariable