Wrote a test for getKeys().