add unittest for #417