Remove mongodb dependency from tests