wrote full testing procedure for run_test