Bug 906388 - convert test-self.js to use the new test framework