Settle mocks by typechecking the arguments
Refactor StubTest

- move `test_klass` scoping into setup-method