temporarily fixed incorrect session handling, causing flash messages to never be removed
fixed failing tests