That looks like you can never set a cookie. Since you don't check the existence of the cookie before reading from it, and you have output before the setcookie header, it will result in no cookie ever being set.
This is probably what you want:
if (!isset($_COOKIE['test']) || isset($_COOKIE['test']) && $_COOKIE['test'] != true)
setcookie('test', true, time() + 3600);
Sounds like firepages has output buffering set and error reporting shut down on notice.