Added test for typehints in methods