add test case for tr as pageElement
fix to start/stop test server in terrain process