Added interface getAllClasses and testcases