Test that only valid models are used