Register unit tests automatically with MW

Change-Id: I4931f66cee28d952540a11a3483e8ec419b17f95