Automatically register tests with MW

Change-Id: If21ff4ee7178efd10f25d1d166ae879f68191449
Improvements to autoloading to enable loading the code and tests from non-MW code

Change-Id: Ia27042057ceba4ff77f3f7a4ae7467de6e40c53b