Reset preferences after spec to properly teardown test and avoid files b...

...eing saved where they are not gitignored.