Unit tests for Class and Extend