     test "lists all games", %{conn: conn} do
       conn = get conn, api_game_path(conn, :index)
       assert [%{"id" => 1,
-                "status" => "dead"},
+                "status" => "suspend"},
               %{"id" => 2,
                 "status" => "dead"}] =
         json_response(conn, 200)

      |> Ecto.Changeset.apply_changes
      |> GameForm.save

      on_exit fn ->
        :mnesia.clear_table GameForm
      end

      :ok


  describe "GET index" do
    setup do
      # TODO repo should get cleaned up after each test.
      MnesiaTesting.teardown

      running_game = %GameForm{}
      |> GameForm.changeset(%{})
      |> Ecto.Changeset.put_change(:id, 1)
      |> Ecto.Changeset.apply_changes
      |> GameForm.save


      dead_game = %GameForm{}
      |> GameForm.changeset(%{})
