Implemeing tests to instance monitoring. fixes #47