 
     expr_ast = string_to_ast(module, line, file, test.expr)
 
-    quoted =
     quote do
+      unquote_splicing(test_import(module, do_import))
+
       try do
         v = unquote(expr_ast)
         raise ExUnit.ExpectationError,

            unquote(stack)
      end
    end
    if do_import do
      quoted = quote do
        import unquote(module)
        unquote(quoted)
      end
    end
    quoted
  end

  defp test_content(Test[expected: { :error, exception, message }] = test, module, do_import) do

            unquote(stack)
      end
    end
  end

  defp test_import(_mod, false), do: []
  defp test_import(mod, _) do
    [quote do: import(unquote(mod))]
  end

  defp string_to_ast(module, line, file, expr) do
