add unit test for model refresh event