Mode assertion test to guard against wrong int/oct stuff
More tests, test refactoring, more mode fixes
Run full test suite again, oops