Make sessions REST API test more robust.

Was seeing failures on Windows because it failed to delete the folder.