test that checks if the IFileSystem.CurrentDirectory has been reset

Related to issue #388. Added test that verifies that the current directory has been reset after script processing.