random & logging of pass fail added