Before putting your macros into real mode, you can test to make sure your macros run correctly. Both 9Hits Viewer and 9Hits Traffic Bot have tools to help you test your macros. You can open the test tool by clicking the button.
Here is a simple example of google search script and click on the first result
Use the Log function may help debugging your script.