fixed test to make more sence, create a tmp dir to compare files