Remove tests dependency on nose2. Closes #4258.