test case for NamedTemporaryFile context manager
fixing NamedTemporaryFile context manager, `__enter__` is needed