Added test to clear the database after testing the Model
Added ModelCollectionTest; Fixed minor issues in other libs and tests