fix option test when options is none
use temp directories for test instead of hard coded /tmp