Add find tests and remove panic in DEBUG Upstream-commit: b63709c1f1292c362dbc3d482520fb7e117605f9 Component: engine