1. Add template plugins tests
2. fixed bug