test case and frontend demo