add test code and steps in README.md