Added and fixed smart_dispatch integration tests.