Make additional pkg loading more robust.

* check if hook_scripts_pkgs is an array else break.
* Explicit definition of expected packages in both tests.
* Fix wrong package definition in test.yaml