on *:TEXT:*:#script-test:{1
if ($me isop $chan){2
if ($1 == !test){3 msg $chan A test, you say? }3
}2
You have to count your brackets. With brackets and parentheses I count up till the last open one, then I subtract them as I count the closing brackets until I get back to 1. As you can see you are missing a bracket here. Also, as said, you need a space between () and {}.
And on a sidenote, there are prefixes that allow you to check if you are an op in the channel.
on @*:TEXT:*:#script-test:{
if ($1 == !test) { msg $chan A test, you say? }
}
The @ means "if ($me !isop #) return".