Refactor tests and high_pins method a bit.