Tests for vals-by-class