Add shared_examples for GET, HEAD methods.