add register tests
fix typo