add rspec test and modify readme