added unit tests for monitor update