controller template and test