tests: adapt to new EditKeyResult return value
always return an EditKeyResult in modifyKey method
fix fromStream method, properly recognize multiple concatenated streams
avoid nullpointerexception in EditKeyResult