Fix the unit tests :)

Note this requires testing of https://github.com/joomla/joomla-cms/pull/3548