add EventSourceModel test case
fix reflection bugs.