added testcases for stubgenerator