Added failing test case for simple optional paths.
Fixed #328