How to test the pins' polarity of an ac adapter