[tests] Fix segment test: frame must be padded if < expected frame size