Refactored findpass
Completed unit tests with 90.8% coverage