added test cases
fixed a typo