fixed test code and README.md