Fix error message formatting in filters unit tests