setup and type map test,
fix chdir() - which was redundant and causing more lookup errors in other tests