unit testing for algorithms used in save update