I took my CPL flying test on a class two medical, in 2005.
I discussed this prior with the testing officer (who thought it was a bit weird at first). However, when I explained that I was not intending to fly commercially straight away, and then I would get a fresh class one when actively seeking flying work, he had no issue with it.
Regs, may have changed obviously in the ensuing fifteen years.