add tests for rate_query function
Merge pull request #18 from fna/test-rate-query

Add tests for rate_query function