[backport] Make nsc.Global based tests work under SBT
[backport] Make nsc.Global based tests work under SBT

And remove unused code.

(cherry picked from commit 7238bc1982cb1d87157c650115a2ae92a58430c9)

scala/async,knoldus/async,anand-singh/async