Added test for idrepo on failure