update the code for TsPlayer testing