Fix publisher tests

Fixed test to check against integer instead of ascii values.