add template and test_client