Independence Testing for Bounded Degree Bayesian Networks