Tidying checking for c14n duplicates and adding tests