Add tests for API assignability in inherited apis/providers

Verify that APIs or providers with their own *Api class that inherits
from another API/provider are able to unwrapApi both to the inherited
api and their own api.