High availability policies

I needed to manipulate policies so added them.

In the process I have upgraded and updated rspec tests to the current version, it seemed easier.