Minor corrections to npred_general.py and test_spectral_cube.py