Tests for flatMap on Optional.