Fetch dependencies before testing and building