Added macros and shared examples to specs