added test case for capped collection