Test for invalid gain values