update optwrap(), tests for optimx 2013.8.6