Merge pull request #17 from fna/master

Save 0 in adj_value instead of NULL
add tests for rate_query function
Merge pull request #18 from fna/test-rate-query

Add tests for rate_query function