The mock modify by module pattern