fixed compilation warning in register tests