testing SR-latch network