[test] Test for id retrieval