just do heaps of practices.
like
whenever you see just like a tan x change it to sinx/cosx.. if it dosen't work, try a dif one.
in the exam
if you haven't really learnt the identities, at the start of th test, quickly write them down on the front, when they are fresh in your mind... then you...