added unit testing for persist re-ordering of works.