Manual import of @CatherineH thorlabs unittests
Applied some quick formatting to previous commit