def test_scoreboard_detail_returns_different_counts():
    """
    Test that /api/v1/scoreboard/top/10 and /api/v1/scoreboard/top/1
    return different amounts of values even when cached
    """
    app = create_ctfd()
    with app.app_context():
        # Create multiple users
        for i in range(2, 13):
            gen_user(app.db, name=f"user{i}", email=f"user{i}@examplectf.com")

        # Create a challenge
        chal = gen_challenge(app.db, value=100)
        gen_flag(app.db, challenge_id=chal.id, content="flag")

        # Generate solves for the challenge for multiple users
        for user_id in range(2, 13):  # User IDs start from 2 (admin is 1)
            gen_solve(app.db, user_id=user_id, challenge_id=chal.id)

        with login_as_user(app, name="user2") as client:
            # Fetch top 10 scores
            top_10_resp = client.get("/api/v1/scoreboard/top/10").get_json()
            assert len(top_10_resp["data"]) == 10

            # Fetch top 1 score
            top_1_resp = client.get("/api/v1/scoreboard/top/1").get_json()
            assert len(top_1_resp["data"]) == 1

            # Ensure the results are different
            assert top_10_resp["data"] != top_1_resp["data"]

            # Fetch scores again
            assert top_10_resp == client.get("/api/v1/scoreboard/top/10").get_json()
            assert top_1_resp == client.get("/api/v1/scoreboard/top/1").get_json()

    destroy_ctfd(app)

    Test that /api/v1/scoreboard/top/10 and /api/v1/scoreboard/top/1
    return different amounts of values even when cached
    
tests/api/v1/test_scoreboard.py