Reduce test redundancy through shared behaviors

A lot more redundancy remains to be removed though.