Adjust tests to be less senstitive to actual text wrap position

PhantomJS sometimes wraps text differently (probably due to differences in rendering).