Testing optionals and control statements