Unit tests for registration class