Bug 1024774 - Part 2: Tests for serialization. r=jimb