Rewrote the Test Method for only pins in use