test and fix #119