build and testing packages refactored to permit local testing