Modified ResultDAO. Created test case for TestResultDAO.