fixed dia png detect test, and ~~ warning
fixed invalid config test