Update readme and add test cases