init template
write test code