Add file storage test and move cookie access to Http wrapper