The by-election had been regarded as Liberal Leader Jess Wilson's first test ahead of the November state election.