Modified Rate to not use toFixed which creates a string just to convert back to number. Added Rate test.

: restructure