support stylus and add test module fix #643