Court upholds fine for unlicensed teachers