finish test case and fix reflection bug