Fixed package dependencies in Rakefile (run tests and generate doc, then package).