tests.opcodes/client: Add test for constants

Also, test if the ConvertNicDiskModifications function operates as
expected.
tests.config: Test attach/detach wrappers
tests.cmdlib: Check if attach/detach checks work
tests.cmdlib: Extend tests for _ApplyContainerMods