Created test for when JSON payload is missing expected key.