monitor.setup checks for OrderDict or dict for extra_costs. changed test to use assert_raises