Restore test_classname and test_methodname context shortcuts to avoid breaking compatibility