Submodules: Add test library

Add a test library which makes it easier to cover all combinations of
submodule update combinations for all affected commands.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>