added test case for thompson part