fix tests for changed key flag semantics