fix payer template schema error, and add test :)