Issue #19, stricter signature verification, with tests for cases that were passing but shouldn't.