added test case
added some brief comments