The $30 is because the establishment that provides the testing is entitled to a fee.

And if you fail, the fee entitles you to take the test one more time within 24 hours.

But, yeah, getting handguns here is ridiculously difficult. Serves no purpose but to pour more money into Sacrademento.