working (slightly hacked) meta_schema.js and test code