Add tests and update readme.
Update readme.