Added support for building test target Types and mocking their dependencies.