@Test
	public void testQuiz1() {
		Quiz quiz = Quiz.getQuizByQuizName("Bunny Quiz");
		int quizID = quiz.quizID;
		// General info
		assertEquals(quiz.category, "Animals");
		assertEquals(quiz.creator.username, "stanford");		
		// Update 
		quiz.raterNumber = 100;
		quiz.totalRating = 356;
		quiz.updateCurrentQuiz();		
		quiz = Quiz.getQuizByQuizID(quizID);
		// Score
		assertEquals(quiz.getTotalScore(), 72, 1e-6);
		assertEquals(quiz.getBestScore(), 60, 1e-6);
		User stanford = User.getUserByUsername("stanford");
		User google = User.getUserByUsername("google");
		assertEquals(quiz.getUserBestScore(stanford), 60, 1e-6);
		assertEquals(quiz.getUserBestScore(google), 10, 1e-6);
		// Rating
		assertEquals(quiz.getQuizRating(), 3.56, 1e-6);
		for (int i = 0; i < 100; i++)
			quiz.addQuizRating(5);
		assertEquals(quiz.getQuizRating(), 4.28, 1e-6);		
		
		// Summary
		QuizSummary summary = quiz.getQuizSummary();
		assertEquals(summary.totalScore, 72, 1e-6);
		assertEquals(summary.averageScore, 33.333333, 1e-6);
		assertEquals(summary.bestScore, 60, 1e-6);
		assertEquals(summary.topUserSet.size(), 1);
		assertEquals(summary.averageTimespan, 108777.777777, 1e-6);
		assertEquals(summary.bestTimespan, 10000, 1e-6);
		assertEquals(summary.totalUser, 6);	
		assertEquals(summary.raterNumber, 200, 1e-6);
		assertEquals(summary.totalRating, 856, 1e-6);
		assertEquals(summary.averageRating, 4.28, 1e-6);
		
		// Questions
		ArrayList<Question> questions = quiz.getQuestions();
		assertEquals(questions.size(), 7);
	}