Add a test for embedding types

When code inherits methods by embedding, we should still be able to
use mocks.