do mock doctrine functional in tests