Remove JFactory::getStream from the Filesystem Package

and fix unit tests