Thursday’s byelection will be the first test of Jeremy Corbyn’s leadership, with Ukip hoping to win over disenchanted voters