Fix typos in unit tests
The keys for records are also lowercased