Added test for key finding.