Fix constness in metadebugger_test_shell