Add unit tests for mkimg(1):