You cannot take the IR test before having completed the written exams. You can however do the IR best before the CPL, in fact this way results in the minimum number of training hours (and total time) before you end up with your CPL/IR. However, the step between PPL and ME/IR is massive, and the CPL Skill Test is a good bridge between the two. I would be extremely cautious about doing the IR first.