fix broken tests

The original tests make some assumptions about sanitize method , and were broken because of e7633a0.