Fix errors in controller test templates