separate test_stack from test_qsort
add test of swap