removed dead code from new_norb.py, added some unit tests