Added fetchspecs, fetchtrees methods, fixed local files directory, and finalize unit tests