Fixed typo in test for storage file cache
Added additional conditional check for session handler to prevent NoneType