Added simple unit for script smart_dispatch, fixed bug