Added a get_monitor_socket method. Made tests work.