Added tests for the model and collection