fixes for nightly - new "use" required, and fixes for tests using "fail!" instead of "panic!"