Fixes in test_lsb (nogui version)