Updated package build chain (routine and tests)