add a test for model accessor