update README and add tests