added Pin class tests