fixing make-temp
adding more tests