added simple test for models.js