Rename variables

Rename variables to make it more neutral. These methods
can be reuse for getting both failed and successful tests.
Change the module listing from array to object

For the result return from the object to be JSON-compatible, I have to
the module listing in _readResults to object instead of array.