unit tests for Chan-Tang Hsu and Duy Quang Nguyen