add the tests for the commit a99400c7bb04b88b6a88597e29aa5189fdc16568

close #27