       sol = get_soloist(performance)
       assert sol.age_group == "II"
 
-      [acc1, acc2] =  get_accompanists(performance)
+      [acc1, acc2] = get_accompanists(performance)
       assert acc1.age_group == "V"
       assert acc2.age_group == "V"
     end
 
-    test "create_performance/2 assigns the correct age groups for a pop ensemble performance" do
+    test "assigns the correct age groups for a pop ensemble performance" do
       cc = insert(:contest_category, category: build(:category, genre: "popular"))
       {cc, attrs} = performance_params([
         appearance_params("ensemblist", ~D[2006-12-31]),

      assert acc2.age_group == "V"
    end

    test "create_performance/2 assigns the correct age groups for a pop solo performance" do
      cc = insert(:contest_category, category: build(:category, genre: "popular"))
      {cc, attrs} = performance_params([
        appearance_params("soloist", ~D[2007-01-01]),

      assert Regex.match?(~r/^[0-9]{6}$/, edit_code)
    end

    test "sets no edit code when the data is invalid" do
      {cc, attrs} = performance_params([])
      {:error, changeset} = Showtime.create_performance(cc.contest, attrs)

      assert Changeset.get_change(changeset, :edit_code) == nil
    end

    test "assigns a joint age group based on non-accompanists" do
      {cc, attrs} = performance_params([
        appearance_params("ensemblist", ~D[2006-12-31]),
        appearance_params("ensemblist", ~D[2007-01-01]),
