Add test_optional.cpp