Added tests for Models and collections