I am fine with moving it into test_api_classes.py.  I just thought I'd start it in a different file because I can see the tests grow.  Also, it is not strictly restricted to api_classes as `jedi.defined_names` is actually defined in `jedi.api` (well, most of it is defined in api_classes, though).