Add class unregistration test.