test and simulations