Added monitor to struct functional_test.

Functional test now uses the monitor for writing error messages.