Create more tests for special pages

New test case for ModifyTerm special pages which tests the common
functionalities of those pages. Also moved some code that was used more
than one times into a TestItemHelper class.

Change-Id: Ie13b24a4da9122bfb7c014221e5e8041d7217b3f
Merge "Create more tests for special pages"