adds controller test snippet