Add proper tests for hierarchical folder sorting. Also, fix a bug in ActiveSync where the fake inbox's server ID to folder ID mapping never got updated.