Added concrete pattern test for optionals (issue #625 )