Bug 1026098 - New unit tests. p=fcampo