move debug msg in main thread
add pit and fib tests