fixed MemoryFileSystem
fixed SaveFunction to detect more invalid paths
improved SaveFunction tests, removed unit testing with integration tests
trailing slash in Path is now forbidden