wrote tests for wine model