Minor bug in isRunContained, added test to demonstrate