Write tests for system runtime.
Handle case where access of `runtime.XPCOMABI` throws.
Addressing minor code styling issues.
Merge pull request #710 from Gozala/bug/runtime-tests@825216

Fix Bug 825216 - Write tests for system runtime. r=@ZER0