ITTE-1110 - Finished threads for the task.

Added unit tests.