run test via context manager