add some test about calculate dependency