fixed unittests, refactored tornado config. it finally works