Updated test bed script