rwpi_test added, iteration runs 50 always, needs fix