Bug 1052166 - Add tests for grants_db.py

Another NIT is that an instance variable should be all lower-case. So `grant` instead of `Grant`.