add register tests