add rspec tests for str2bool