Trip banning unit testing.

Support for complete trip banning and partial trip banning.