Fix the unit tests :)

Note this requires testing of https://github.com/joomla/joomla-cms/pull/3548 before this can be merged for changes in the libraries folder of Joomla to change the method to call statically for JApplication(Site/Administrator)::getRouter() instead of non-statically (it's not a b/c break as the method is already static - we're not calling it as such however)