update test case and demo template