refactored for shared_examples_for