Fixed deprecated usages from unittest 0.10.0
Deprecated a bunch of top-level members