update readme and add more tests