Link do_safely/2 proc and dts_server + added tests