add a unit test case for laser connection check