Trump's influence being tested in Republican primary elections