tests and templates