Mocha tests for utils

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>