Add test for RepeatedCharactersFilter

Put error-message in seperate variable