Added test for Pin.java