Removed redundant call to upper

This is a minor performance tweak, and only affects the testing suite.