Fixed bug that broke option.success callback wrapping.
Merge pull request #29 from mariusk/master

Bugfix for broken tests