Is there a way to test the level of expression from a viral vector in an optogenetics experiment?

No, there is not. The level of expression can only be determined once the animal has been euthanised.