Fixing up tests
Fixing doctests
Fixing more doctests
Fix spec1d tests