Ki, I agree (as usual) with Dangerouso. As usual he knows his stuff !
In any rate Harmonic Minor is a great scale to use. I would also suggest try working out a lick that uses one of those "tensions" as your center point.
A great trick that I used to enjoy is arpeggiating the chord only using a little formula to add flair to it. Take your chord question and say its root is A. Take the notes of the chord and find where they lay in the Harmonic Minor scale.
A-B-C-D-E-F-G-#-A
then play a pattern where you you start one note on the =scale above your target pitch go a half step below your target pitch and then end up on your taget pitch, using triplets so you would have B Ab A, D B C, F Eb E, A G G#, and then you can resolve on the A or repeat the patter an octave higher, or if the chord has changed apply the pattern to the next chord. If you like that try pssing over the target pitch each time so the pattern would be in eighth or sixteenth notes like this
B A Ab A, D C B C, F E Eb E, A G#G G#,
If that all makes sense and you like it cool, if you don't understand, lemme know and I'll try and break it down. And if you just don;t liek then you obviously have no class J/K
O and another great trick would be to use your Major 7th (g# in this case) as a pedal point. You'll get some dissonance but only in a hip Miles Davis way!