Test shared code mechanism