- fix error handling logic

- update timeout for different news pipeline
- print more logs
- add test mode for database