factored out standard resource spec into shared examples