Guidance modifies the target number as opposed to the roll, the same way all bonuses are handled. There is actually a bug here which attribute test without a skill aren't affected, when they should be (technically there's no such thing as a skill check in 5e, just attribute tests with proficiency bonus).