This change fixes Jira MPII-948, "Search page testJiraMPII_806". It also adds a new test, 'testLegDownload'.
Merge origin/master