fix issue #1388 using another way
add a stricter test