Added test for ID existence