add dep test and fix dep method