Move 2 helper function used for test which relay on testplanet from the test file where they were created to separated file to contain them because they are not only used in the test file were initially they were created.