Reorganizes the unit test for the build_master_images_table module and i...

...ncreases coverage and documentation.