I believe the box with the lock icon was expecting the password for your WiFi network.
. My password for my wi-fi is my router number. My admin password is different. I tried them both. But, why didn't I get the hardware Test icon which is a picture of a computer?
try holding "A" or "D" at boot for the hardware test. If it tries to run it over the internet, you should use a WIRED ethernet connection.
What finally worked was hooking up the ethernet cable. Thanks for your suggestions. I never would have thought of that.
MacBook Pro - M2, Ventura 13.6 Safari Tech Prev 17.0 Safari 16.6 Firefox 116.0.2 iPhone 7 Version 15.8