Unittest for dot