Change some tests to use shared examples