Corrected typos. Corrected automated test cases.