fix lock test