Fix tmp/spec folder issue while test run