Tests for NSUserDefaults