After revising the uses you should check you are fully familiar with their use. Try where you’ll find some exercises. In order to get some contrasts use this one too. A useful explanation for the use of the past perfect continuous can be found in this document: past perfect continuous

past continuous