Add test for "self" typehint