Add basic yum and apt package install tests

Change-Id: I96e3bdc2566222fb4926e8a8f88a7f6b822e16f7
Partial-bug: #1235796
Only run yum install once per package block

before we would get this:
yum install a
yum install a b
yum install a b c

Now we just get
yum install a b c

Change-Id: I2067922ab03de9488a0cd4e08c8d44c00296cd6a
Closes-bug: #1235796