refactored the test with the shoulda gem syntax