Added registration unit tests