The aim of this project is to build a flexible test interface and grading service module for ClassTA Course Management System (CMS). Most CMS has similar features in their test interface and grading module. However, most of them also shared common issues such as how to design a responsive yet easy to use test interface and grading service, how to minimizing the possibility of cheating, and how to enhance students' learning experience. The newly test interface and grading service are built with consideration to tackle the known issues above. AJAX is used as a based technology for this project. It is chosen because of its capability to communicate with the server asynchronously and allowing part of the web page to be updated without having to reload the entire page, thus creating a fast and responsive test interface and grading services. Moreover, to make it easy to use, the basic interface uses icons and simple drag and drop feature. New test interface is developed for students to take the different types of available tests such as In-Class Test, Online Test, and Self-Graded Test. In-Class test is unique feature developed to minimize cheating possibility. It is a type of hybrid test where students take the test in the class and later on submit their answers online. New test interface has options for teacher to display one question in one page or display all questions in a page. To provide a better learning experience for students, it also has features that allowing students to check their grades, review test result and solution, and submit difficulty rating of a question in the test. The grading service is built for faculties to provide an advance and flexible grading system. With the new grading service, faculties can perform manual grading or automatic regrading process in many different ways, including options to use or ignore manual changes in re-grading process. New statistics, histogram, and comments for survey and regular test also provided for faculties to track the class performance.