Use explicit test dependencies in samples