Add additional test cases.

New test cases are located in example2 folder. ObjectDetector.py
rewritten to reflect the change.