add unittest for toolkit