Store lastUid
Test for uid