Expect malformed response objects (#109)

Include test for sql errors on layergroup creation
Closes #109