add test dataclass
fix cookie + hardcoded localhost
more tests