add basic test routine for Pin class