   end
 
   describe "POST /claims/:id/auth" do
-    test "201" do
+    test "201", %{claim_id: claim_id} do
       %{"data" => %{"id" => id, "token" => token}} = "claims"
-      |> post!(construct_claim())
+      |> post!(construct_claim(claim_id))
       |> get_body()
 
       path = "claims/" <> to_string(id) <> "/auth"

        email: "ivan@example.com",
        credential: %{
          type: "external-credential",
          id: @valid_claim_id,
          metadata: %{
            phone: "+380631112233"
          }

    number: "5473959513413611"
  }

  defp construct_claim(id, credential \\ @card_number_credential) do
    %{
      id: id,
      credential: credential
