DRY'ed test