fixed nose- and doctest-related errors