added minnor correction
added test cases
minnor correction