Results as enums

change monitoringResult type from string to int
add basic testing infrastructure for monitor call

@mlafeldt please review