Add test cases for key sizes, all doc query, and live query