Fixed unit testing for the 'monitoring' database