refactored my tests to use shared_examples