Use shared_examples for test