add cookie perm and basic logging of cookies for a given request
refactor test running