Added tests for LeaveX, InX.