Ted's squashed acceptance test for #4227
Do not recycled freed struct Class

Add unit test, activate acceptance test