Made lsb test more robust