Set all mask entries in keyword search; fixes #18 and adds test for it.