Exploring community solutions of this exercise I found this solution that completely ignores invalid characters. This is because all the test that has invalid characters, also has a invalid ISBN. So I think it will be good to add a test that has a valid ISBN with invalid characters, like this one:
#[test]
fn valid_isbn_with_invalid_characters() {
assert!(is_valid_isbn("3-598-P21508-8"));
}