add testprimary handler