Test for the updated RegexSerializer