Deprecated tests

This PR fix deprecated warnings due to the update of shoulda-matchers.