Added latency-test and simple-test programs.