Add test for initramfs.build().

Refactor tests to provide common methods in __init__ modules in the
various test suites as well as reduce code replication.  Added unit
tests checking that the correct command is generated by genkernel.build.