change readme and add tests