* fix bug and add test * code style * code style * code style * Revert "code style" This reverts commit c7c204ac0a7d93be3913a75f1ea51708af7e73f9. * add license