Added a simple test for registration

Signed-off-by: emanuele <emanuele45@gmail.com>