Re-write writable test directory assumption-handling with Assume rather than manual if-conditions.