fix mock responses, and fix typecasting of blank strings