finish test unit to rspec
refactor rspec