Framework for testing server interactions