Used computed test path based on test directory instead of hardcoded /tmp.