storage: added mongodb storage and unified tests