added more tests for models.js