Expose toObject on AbstractServerTest