creating tests for document.rb and package_manager.rb