Marks test-only dependencies with correct scope