Yes, you can create a section called:
on_debug {
: goto "location";
: set_true "has_searched_drawer";
: create "lamp" target="inventory";
}
This will have priority over on_startup, and you can setup your test there. Make sure you comment out this block before you compile the full game.
To comment out a block select a block in the editor, then press CONTROL + / , to uncomment out a block, select the commented out region, and press CONTROL + / again.