tests for sanitize_bool_in_hash