Set the result properly if test=True
Use empty dict, not None, for safety