Fixed testLosing bug