Fixed functional testing, changed from process to thread.