Fixed wrong argument order, added tests to prevent in future.
Added test
Merge pull request #124 from RWOverdijk/hotfix/correct-argument-order

Fixed wrong argument order, added tests to prevent in future.