search unused id (testing)