Added support for isCapped in legacy collection
Ported old DBTest over, and made a start at implementing missing functionality.
Merging in changes