add test to ensure it's not possible to initialize a struct field of type regex with a bad value