added unit test for save queue
more javadoc