cleanup threading.jl test file and introduce an example where type instantiation slows thing seriously down