Added test cases and changed README.md