added object detector test code