Add test case for common interfaces and generic classes