force warnings to print on each function testcase 6 & 7