add testcase for dowoload sample code
restructure