add rspec tests for bool2str