[bug 937183] Add sanitizing tests