BUG: Fixed SetTemporaryPath in vtkMRMLApplicationLogic

Fixed SetTemporaryPath function and added tests for SetTemporaryPath and GetTemporaryPath in vtkMRMLApplicationLogic.
Issue #2416