Added offline testing functionality