Add some test coverage for server id mapping.

r? @mozsquib

It appears the logic is fine, but now we have tests that prove it!

This is related to https://bugzilla.mozilla.org/show_bug.cgi?id=823669#c6

As I'll discuss on the bug, I think I had corrupted my database, effectively.