Modifying doob.contains and to pass specs.