Add unit tests for Optional with typing (related to Issue #30)