Add specs for rate update with invalid values
Fix rate update with invalid values