Added test code for pins