Replace dots with underscores in search_id

dots are not part of a valid data bag item id.

This PR include a rspec case for test this.

So the first commit prepare all the rspec stuf