Fix for class based impls
Call with constructor and default parameter works
Fixed a related issue and better testing
slight modification to test code
Merge pull request #6 from Voltir/master

Fix for class based impls