Write unit tests for the RegistrationController class.

Signed-off-by: Marios Sotiropoulos <mai1211@uom.edu.gr>