Confidence intervals and tests on the variance ratio in random models with two variance components