made package testing more flexible