Verify headers in server response

This patch verifies the headers returned by the server.
Refer https://trello.com/c/Az78XtQ7/195-test-vary-header-is-set-correctly.

Change-Id: I348b30f3014b8875f3794eb8ef05bd9c19db624a
Merge "Verify headers in server response"