Base architecture for worker
fix tests acording to the new architecture
error reporter