add some tests and fix rates.html