LPS-33307 Refactor tests for Site Templates and Page Templates

* Remove duplicated code by using *TestUtils
* Improve test code to make it more flexible and extensible
* Cover more cases for Site Templates
* Add tests for Page Templates