Cookie tests shouldn't write to disk

Fixes #109.