Added nested class test cases.