add test with custom implemented json marshalling