Fix scope of test dependencies