Add tests for pin view.
Fix a bug that private pin where public