added register tests, all tests pass