Move code that is used once into test body rather than setup