Improve tests for find_pin view,
Fix few bugs.