Fix bug with integer truncation in ASSERT_EQUALS
Fix expected value for testSetFrequencyParameter