test for #155
store schema as json. fixes #155