Add unit test to check wrong uid case