Fix non-namespaced dependency on JFactory in TestCase.