Added background subtraction test code