better error handling, remove date_range from test
Merge pull request #20 from dimagi/misc

better error handling, remove date_range from test