Improved test so there is no Filesystem access, created a factory method with default dependencies