Separates out camera test code