Make sure packages is set before testing license.