Converted the Filesystem-class to trait and filesystem unit test to PSR.