bug fix in test.py script and moving of connected component to TextDetection.py lib