Test scripts changed to use generated paths and define.sh for common functions.