Inherit method support

I recently came across the same issue described in #16. 

So I extended the tests and added this feature.