fixed a bug with TestCreateMethod