New test interface

The lingering thread is due to missing termination here.