test for model event listener.