registration unit tests