Added unit test for Rate.
Renames Rates* to Rate*.