Modified test code for blob detection.