refactored the rpi deployment and tests