fix compare check (TODO: replace with http-assert)