=== Phase 6: Leaderboard & Champion Tests === Using TrackID: 22 User 1: (ID: 26) User 2: (ID: 27) --- Inserting test stats --- User 1 stats: OK User 2 stats: OK --- Test: getTrackLeaderboard (score) --- PASS: Leaderboard score - status success PASS: Leaderboard score - has entries PASS: Leaderboard score - rank 1 is user1 (highest) PASS: Leaderboard score - rank 1 value is 5000 PASS: Leaderboard score - rank 2 is user2 --- Test: getTrackLeaderboard (time) --- PASS: Leaderboard time - status success PASS: Leaderboard time - rank 1 is user2 (fastest) PASS: Leaderboard time - rank 1 value is 95.2 --- Test: getTrackLeaderboard (airtime) --- PASS: Leaderboard airtime - rank 1 is user1 --- Test: getTrackLeaderboard (lap) --- PASS: Leaderboard lap - rank 1 is user2 (fastest lap) --- Test: getTrackLeaderboard (invalid) --- PASS: Leaderboard invalid stat - returns error --- Test: getUserTrackStats --- PASS: User stats - status success PASS: User stats - highestScore is 5000 PASS: User stats - scoreRank is 1 (user1 has top score) PASS: User stats - timeRank is 2 (user1 has slower time) PASS: User stats - bestTrickName is Backflip PASS: User stats - nonexistent user returns not_found --- Test: getTrackChampions --- PASS: Champions - status success PASS: Champions - score champion is user1 PASS: Champions - time champion is user2 (fastest) PASS: Champions - airtime champion is user1 PASS: Champions - lap champion is user2 PASS: Champions - trick champion is user1 --- Test: checkUserChampionStatus --- PASS: Champion status user1 - status success PASS: Champion status user1 - is score champion PASS: Champion status user1 - is airtime champion PASS: Champion status user1 - is jumpdist champion PASS: Champion status user1 - is trick champion PASS: Champion status user1 - NOT time champion PASS: Champion status user1 - NOT lap champion PASS: Champion status user2 - is time champion PASS: Champion status user2 - is lap champion PASS: Champion status user2 - NOT score champion --- Cleanup --- Test data cleaned up. ============================= Results: 33 PASSED, 0 FAILED =============================