Bug 1024791 - Scan the add-on for tests

Shouldn't this also have `result[result.length - 1]` like the packed version above (if checking the previous entry of being the same)? Also, maybe we can pull this into its own utility in the same file rather than duplicating. Same for the adding of the suites (where TEST_REGEX is used and suites pushed)