Fixed test for checking if UID is nil