add test for model synch in JS