sim_fun_test function

A simple simulation function for testing