Tests: fix textlabel tests

The API changed a little bit: for each 8-bit integer compression of the
color float values, a floor is now used. This makes 0.498 * 255 equal to
126, replacing 127.