Added package validation tests and warnings in build and test