Fix random test failures in TestExchangeClient

Add test pages to output buffer before stating exchange client so client preforms
HTTP request as expected by tests.
Fix state machine in MockExchangeRequestProcessor

Always create mock buffers for requested resources to avoid null pointer exceptions
Consolidate mock buffer code to improve readability