write a small test to confirm the fix #656