added a test routine

Signed-off-by: Ankorite <ankorite@gmail.com>