Tests for doc count error