added basic thread model to test; block main test thread and wait for child threads stop