test(menu): regressiong test to ensure that 'prepare','menu:page' hook completes in admin context

Refs #6379
Merge branch 'admin-menu-sort' of https://github.com/hypeJunction/Elgg into admin-menu-sort

Conflicts:
	engine/tests/regression/trac_bugs.php