Added tests for pin_format