System testing and debuging