The line ```python assert metadata['module'] == current_module ``` should throw a better error message.