[test] Add basic test for build dependency visitor
Implement build dependency visitor