Consolidate tests from basic.t into misc.t.
Use pushd / popd.