Use variable for register name in test