finished directedPackage tests and implementation