Updated for active record 3.2 (self.table_name and self.primary_key instead of the set_table_name and set_primary_key)
Modified the unit test for the active recrod in the variation module to rounr the frequency to two decimals.