Added a couple of tests for new functions

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