updated README.md and added tests