removed thor as a dependency and fixed test