DRY up tests using `let`