Always disable KeyError in a test environment.

Signed-off-by: Chris Lamb <chris@keyerror.com>