Added tests.
Now includes extremal bounding.