add test using Dong Yuxi's code