Add test_valid_rate