added ITs for dependency rules and fixed bugs in class scanner