mitm tests for challenge 35, various g functions