added test for special charactor; fix cli stuck