Fixed bug 876852 - Fixed unit tests

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=876852