Issues #15083 and #16992: port find.* method tests to unittest