Issue #97: Replace try/catch test in invalid_key_test/0 with ?assertError/2