refactor signed cookie tests
fix signed cookies test