Fix session and flash parameters when calling test helper like get, put, post, etc.