Added utilites for testing different scenarious.