test for model methods