Adds a test to ensure that empty sessions are not modified