More tests for count_distinct. Closes #102