Added missing deps. Fixed bug in key testing.
Merge pull request #23 from hackersatbrown/test-bugfix

Added missing deps. Fixed bug in key testing.