fix Rspec bugs
add more test case