Fix test library to ignore any and all pre-existing handles