Updated and added unit tests and the patch_logger
Updated and added unit tests and the patch_logger