Add ImageSensor tests

Part of #601 

@scottpurdy