Improve tests

Two commits with SSIA. It is not needed to setup cert anymore to runt the
tests. Also `allow` is not present in older rspec versions.