Add several tests and a spec support helper.