CB-5404: Add test for actually reading directory contents