Add spec test for monitor