[doctrine] add functional tests for doctrine storage and mongo manager.