test that checks if the IFileSystem.CurrentDirectory has been reset

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