fix bugs about test