rspec test and search option added