Use shared_examples_for in testing