move testmynet to a full script for better control