Add tests for typeobject.WHICH