Added test for sending bad JSON through the constructor.