[Fix] fix phamtomjs test case bugs