Replace O(N) assert statements with O(1) ones:
- They cannot test to the same depth but I've done a long test run with the O(N) ones and there were no issues.