add RSpec test
fix after test