Improve tests with shared examples & stubs