Made GraceHandler seed handling more predictable.
Wrote GraceHandler tests.