Fixed arguments order in worker, limited service number in event manager to 1 (testing purpose) and corrected call to gen_fsm in cache module