Tests, tweaks, and code for server session responses