updated test for id management