refs #5415 fix tests, call storeCustomVariablesInCookie