Bug fixes with import and enumeration.

Fixed a bug with importing the TestContext in the wrong place.

All metadata enumerations are not eager in order to prevent enumerating metadata while chaning it.

Removed unused method and blank line.