Fix "Database.identifyFingerprint() doesn't find fingerprint", add JUnit test