Bug 846909 - insert our testing framework at run time.

This needs bug 915156 to land. PR is based on the working branch.