more test case for isWarning dive function

doing more test cases to every function as much as possible to ensure
that these functions are working properly as expected