rename squeue_test to squeue_test_singlethread
add unit tests
bugfixes in exit and finish functions