working doji test