Addde explicit state_map initialisation for tests bypassing normal run