fix testfragment bug