tests written for Rate class. Fixed a bug, too.