* now pm2json takes a template object and removes surplus properties before database insertion
* adapted testsuite