Add unit test for classes registering.