fix bit doctests
allow importing server modules during tests