Refactoring broke the tests

Fix the tests by ensuring sha256 is used everywhere.
We also might need to support the case where a node without
any packages is added. Handle this as well, include this in the
test cases.

Signed-off-by: Christoph Kassen <c.kassen@telekom.de>