Remove usage of JPATH_ROOT constant from tests.