Registration controller & unit tests