anchor.diff:  									 }}
   		      ),
   
  -	    ets:new(yxa_hooks, [named_table, set]);
  -	_ -> ok
  +	    ets:new(yxa_hooks, [named_table, set]),
  +
  +
  +	    case mnesia:system_info(is_running) of
  +		yes ->
  +		    ok;
  +		no ->
  +		    io:format("Starting Mnesia..."),
  +		    ok = mnesia:start(),
  +		    %erlang:put(test_started_mnesia, true),
  +		    io:format("ok~n")
  +	    end;
  +	_ ->
  +	    ok
       end,
   
       {{Year,Month,Day},{Hour,Min,_Sec}} = calendar:local_time(),
  
positive.code: %%====================================================================
  
  %%--------------------------------------------------------------------
  %% Function: fake_logger_loop()
  %% Descrip.: Main loop for a process that does nothing more than
  %%           registers itself as 'logger'. This is needed when this
  %%           module is executed from a unix-shell, instead of from an
  %%           erlang prompt with an Yxa application running.
  %% Returns : does not return.
  %%--------------------------------------------------------------------
  fake_logger_loop() ->
      receive
  	exit ->
  	    ok;
  	_ ->
  	    fake_logger_loop()
      end.
  
  %%--------------------------------------------------------------------
  
negative.code: 	    io:format("Faking Yxa runtime environment...~n"),
  	    %%mnesia:start(),
  	    %%directory:start_link(),
  	    Logger = spawn(?MODULE, fake_logger_loop, [false]),
  	    register(logger, Logger),
  
  	    {ok, _CfgPid} = yxa_config:start_link({autotest, incomingproxy}),
  