added tests for main method
improved tests for save apprc task