fixes document responses for load/save #3

Fixed the responses for document load/save callback and implemented test for new functionality.