Add dir as accessor on general store instance
fix false positives in test by using tmp directory in file tests