added tests for warning_scanner class