Test - Fixes intermittent test failure for has_package? function.