Wrapper and tests for boost optional.