Moved get_heading_p2p tests from doctests to test cases