added model schema, test cases

the test cases will be migrated to javascript and pure java shortly.