Init test for handlers.

Test the discover method of the main handler
Test and Refactor of handlers and router module

Added Test for the TaskHandler class and refactored modules which need
to be refactored.